#!/usr/bin/env python

### Needs refactoring. Sensors should be enumerations somewhere.
hardware = {
    'Lego NXT':['images/nxt.png',
                """Lego NXT Kit.
    * 32-bit ARM7 microcontroller
    * 256 Kbytes FLASH, 64 Kbytes RAM
    * Bluetooth wireless communication
    * Light, pressure, microphone and ultrasound sensors""",
                ['Light', 'Pressure', 'Sound', 'Ultrasound']
                ],

    'Tmote Invent':['images/invent.png',
                    """Tmote Invent motes from Moteiv.
    * 50kbps 2.4GHz IEEE 802.15.4 Chipcon Wireless Transceiver
    * Interoperability with other IEEE 802.15.4 devices
    * 8MHz Texas Instruments MSP430 microcontroller (10k RAM, 48k Flash)
          storage ADC, DAC, Supply Voltage Supervisor, and DMA Controller
    * Integrated onboard antenna with 50m range indoors / 125m outdoors
    * Temperature, light, sound, 2-axis accelerometer""",
                    ['Temperature', 'Light', 'Sound', 'Accelerometer (2-axis)']
                    ],

    'Crossbow MicaZ':['images/micaz.png',
                      """Crossbow MicaZ motes.
    * 2.4GHz IEEE 802.15.4
    * 250 kbs radio
    * Atmel ATmega 128L processor
    * 128Kb flash, 512 measurement (serial) flash
    * 75m / 100m outdoor radio range, 20m / 30m indoor range
    * MTS310CB sensor board from Crossbow with on board:
        Light, Temperature, Sound, Accelerometer (2-axis),
        Magnetometer (2-axis)
                      """,
                      ['Light', 'Temperature', 'Sound', 'Accelerometer (2-axis)', 'Magnetometer (2-axis)']
                      ],

    'Wolverhampton Mote':['images/wlvmote.png',
                          """Not much is known about this mote yet...
                          """,
                          ['Temperature', 'Pressure', 'Humidity', 'Sound', 'CO2', 'Nitrogen']
                          ]
    }

class Calibrator:
    def __init__(self):
        self.device = None
        self.sensor = None
    def setDevice(self, device):
        self.device = device
    def setSensor(self, sensor):
        self.sensor = sensor
